package com.sdp.khy.baotou.db.khy_package.service;

import com.sdp.khy.baotou.db.khy_package.entity.KhyPackage;
import com.sdp.khy.baotou.view.PackageInvoiceView;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zsp
 * @since 2023-11-29
 */
public interface IKhyPackageService extends IService<KhyPackage> {

	KhyPackage queryKhyPackageById(String keyId);
	
	/**
	 * 根据包裹状态查询
	 * @param packageState
	 * @return
	 */
	List<KhyPackage> queryKhyPackageByState(String packageState);
	
	/**
	 * 根据运输单查询快递信息
	 * @param transportId
	 * @return
	 */
	List<KhyPackage> queryKhyPackageByTransportId(String transportId);
	
	/**
	 * 根据用户账号查询未开票的快递信息
	 * @param userNo
	 * @return
	 */
	List<KhyPackage> getUserOrderNotInvoice(String userNo);
	
	/**
	 * 根据用户账号查询已开票的快递信息
	 * @param userNo
	 * @return
	 */
	List<PackageInvoiceView> getUserOrderInvoice(String userNo);
	
}
